<template>
  <div class="bankcard-container">
    <div class="item" v-for="(item,index) in information" :key="index">
      <div class="head">
        <div class="left">{{item.openingValue}}</div>
        <div class="right">
          <span>变更</span>
          <span>解绑</span>
        </div>
      </div>
      <div class="main">
        <p>
          <span>支行名称:</span>
          <span>{{item.accountName}}</span>
        </p>
        <p>
          <span>户名:</span>
          <span>{{item.accountNumber}}</span>
        </p>
        <p>
          <span>账户:</span>
          <span>{{item.openingValue}}</span>
        </p>
      </div>
    </div>
    <div class="add">
      <div class="addbank">
        <img src="../../images/add.png">
        <span>添加银行卡</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:"bankcard",
  data() {
    return {
      information:[
        {openingValue:"广发银行",accountName:"张三",accountNumber:"6223014512489354624"},
        {openingValue:"广发银行",accountName:"张三",accountNumber:"6223014512489354624"},
        {openingValue:"广发银行",accountName:"张三",accountNumber:"6223014512489354624"},
        {openingValue:"广发银行",accountName:"张三",accountNumber:"6223014512489354624"}
      ]
    }
  },
  mounted() {
    
  },
  methods: {
    
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.bankcard-container {
  width: 98%;
  height: 800px;
  margin-top: 20px;
  margin-left: 20px;
  background:#fff;
  padding: 30px 60px;
}
.item{
  width: 380px;
  height: 220px;
  border: 1px solid #ccc;
  border-radius: 5px;
  float: left;
  margin-right: 80px;
  margin-bottom: 50px;
  box-shadow: 5px 5px 10px #807f7f;
  .head{
    width: 100%;
    height: 40px;
    background-color: #eae8e8;
    border-bottom: 1px solid #ccc;
    line-height: 40px;
    text-align: center;
    .left{
      width: 24%;
      float: left;
    }
    .right{
      width: 30%;
      float: right;
      color: #019EF5;
      span{
        margin-right: 10px;
      }
    }
  }
  .main{
    padding: 20px 30px;
    span:first-of-type{
      display: inline-block;
      width: 22%;
      text-align: right;
    }
  }
}
.add{
  width: 380px;
  height: 220px;
  border: 1px solid #ccc;
  border-radius: 5px;
  float: left;
  box-shadow: 5px 5px 10px #807f7f;
  text-align: center;
  color: #019EF5;
  position: relative;
  .addbank{
    width: 35%;
    height: 65%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    img{
      width: 120px;
    }
  }
}
</style>
